[悬赏]VB根据PID获取窗体名

来源:百度知道 编辑:UC知道 时间:2024/07/05 18:45:25
VB如何根据PID获取窗体名(caption),急!!!

vb 没有现成 的函数调用 具体 解决思路 我在 python 里面看过
返回全部窗口
1:def enum_windows():
"Return a list of handles of all the top level windows"
传入 的 pid 与 全部窗口的pid 一个一个比较
2: if process is not None and windows:
windows = [win for win in windows
if handleprops.processid(win) == process]